import Cookies from 'js-cookie'

const TokenKey = 'Token-Key'
const RefreshTokenKey = 'Refresh-Token-Key'
const UserKey = 'User-Key'
const UserIdKey = 'UserId-Key'
const UserLjdmKey = 'UserLjdm-Key'
const UserAccountKay = 'UserAccount-Key'
const UserRoleKey = 'UserRole-Key'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

export function getUser() {
  return Cookies.get(UserKey)
}

export function setUser(username) {
  return Cookies.set(UserKey, username)
}

export function getUserId() {
  return Cookies.get(UserIdKey)
}

export function setUserId(userId) {
  return Cookies.set(UserIdKey, userId)
}

export function getRefreshToken() {
  return Cookies.get(RefreshTokenKey)
}

export function setRefreshToken(token) {
  return Cookies.set(RefreshTokenKey, token)
}

export function removeRefreshToken() {
  return Cookies.remove(RefreshTokenKey)
}

export function getAccount() {
  return Cookies.get(UserAccountKay)
}

export function setAccount(account) {
  return Cookies.set(UserAccountKay, account)
}

export function getUserRole() {
  return Cookies.get(UserRoleKey)
}

export function setUserRole(userRole) {
  return Cookies.set(UserRoleKey, userRole)
}

export function removeAccount() {
  return Cookies.remove(UserLjdmKey)
}

export function getLjdm() {
  return Cookies.get(UserLjdmKey)
}

export function setLjdm(ljdm) {
  return Cookies.set(UserLjdmKey, ljdm)
}

export function removeLjdm() {
  return Cookies.remove(UserLjdmKey)
}

export function removeUserId() {
  return Cookies.remove(UserIdKey)
}

export function removeUserRole() {
  return Cookies.remove(UserRoleKey)
}
